﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IWMAG.Core.Objects;
using Microsoft.Xna.Framework.Input;

namespace IWMAG.Core.Messaging {
    public struct Message {
        public Message(EventType type, int sender) {
            Type = type;
            Sender = sender;
            Data = new MessagePayload();
            CustomMessage = 0;
        }

        public Message(EventType type, KeyboardState ks) {
            Type = type;
            Sender = -1;
            Data = new MessagePayload();
            Data.Keyboard = ks;
            CustomMessage = 0;
        }

        public EventType Type;
        public int CustomMessage;
        public int Sender; // index of sender in GameObjects
        public MessagePayload Data;
    }
}
